#include<bits/stdc++.h>

using namespace std;

int main() {
    int a, b;
    int N;
    cin >> N;
    while (N--) {
        cin >> a >> b;
        cout << a + b << endl;
    }
    return 0;
}
/**
2
1 2
3 4

3
7
*/
